
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>myfiles · 合同管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="passmail.html" />
    
    
    <link rel="prev" href="login.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../Framework.html">
            
                <a href="../../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../api.html">
            
                <a href="../api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../assets.html">
            
                <a href="../assets.html">
            
                    
                    assets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../components.html">
            
                <a href="../components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../filters.html">
            
                <a href="../filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../mixins.html">
            
                <a href="../mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../router.html">
            
                <a href="../router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../store.html">
            
                <a href="../store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../styles.html">
            
                <a href="../styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../utils.html">
            
                <a href="../utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="./">
            
                <a href="./">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="activate.html">
            
                <a href="activate.html">
            
                    
                    activate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="approvemanage.html">
            
                <a href="approvemanage.html">
            
                    
                    approvemanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="sealmanage.html">
            
                <a href="sealmanage.html">
            
                    
                    sealmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="deptmanage.html">
            
                <a href="deptmanage.html">
            
                    
                    deptmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="faildoc.html">
            
                <a href="faildoc.html">
            
                    
                    faildoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.6" data-path="files.html">
            
                <a href="files.html">
            
                    
                    files
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="init.html">
            
                <a href="init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="layout.html">
            
                <a href="layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="login.html">
            
                <a href="login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.10.10" data-path="myfiles.html">
            
                <a href="myfiles.html">
            
                    
                    myfiles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.11" data-path="passmail.html">
            
                <a href="passmail.html">
            
                    
                    passmail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.12" data-path="redirect.html">
            
                <a href="redirect.html">
            
                    
                    redirect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.13" data-path="sysmanage.html">
            
                <a href="sysmanage.html">
            
                    
                    sysmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.14" data-path="template.html">
            
                <a href="template.html">
            
                    
                    template
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.15" data-path="updateinfo.html">
            
                <a href="updateinfo.html">
            
                    
                    updateinfo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.16" data-path="usermanage.html">
            
                <a href="usermanage.html">
            
                    
                    usermanage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../config.html">
            
                <a href="../config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../newPage.html">
            
                <a href="../newPage.html">
            
                    
                    新建页面
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >myfiles</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x6211;&#x7684;&#x6587;&#x6863;">&#x6211;&#x7684;&#x6587;&#x6863;</h3>
<p><img src="../../images/myfiles.jpg" alt=""></p>
<h5 id="indexvue">index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> user<span class="token punctuation">,</span> doc<span class="token punctuation">,</span> file <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> readTemp <span class="token keyword">from</span> <span class="token string">&apos;@/views/files/readTemp&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x9884;&#x89C8;&#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> searchTemp <span class="token keyword">from</span> <span class="token string">&apos;@/views/files/searchTemp&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x641C;&#x7D22;&#x680F; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> renderSize<span class="token punctuation">,</span> fmtSearchTime <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileI18nHandler<span class="token punctuation">,</span> sortChange <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    MyDocOpt<span class="token punctuation">,</span>
    DocumentState <span class="token keyword">as</span> DocStateEnum<span class="token punctuation">,</span>
    ReqOptType <span class="token keyword">as</span> ReqOptTypeEnum<span class="token punctuation">,</span>
    ResOptType <span class="token keyword">as</span> ResOptTypeEnum<span class="token punctuation">,</span>
    UserRole <span class="token keyword">as</span> RoleEnum
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> DomArgsEnum<span class="token punctuation">,</span> RouterPathEnum<span class="token punctuation">,</span> LocalStorageEnum <span class="token keyword">as</span> LSEnum<span class="token punctuation">,</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span>
    ToolButton <span class="token keyword">as</span> toolBtn<span class="token punctuation">,</span>
    Pagination <span class="token keyword">as</span> paginationTemp<span class="token punctuation">,</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x5DE5;&#x5177;&#x680F;&#x3001;&#x5206;&#x9875; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> printList <span class="token keyword">from</span> <span class="token string">&apos;./printList&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x6253;&#x5370;&#x9884;&#x89C8; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/filters&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>

<span class="token comment">/* myfiles */</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        readTemp<span class="token punctuation">,</span>
        searchTemp<span class="token punctuation">,</span>
        paginationTemp<span class="token punctuation">,</span>
        toolBtn<span class="token punctuation">,</span>
        printList
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    filters<span class="token operator">:</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;&#x6CE8;&#x518C;</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            RouterPathEnum<span class="token punctuation">,</span> <span class="token comment">// &#x8DEF;&#x7531;&#x679A;&#x4E3E; &#x58F0;&#x660E;&#xFF0C;&#x7528;&#x4E8E;Dom&#x4F7F;&#x7528;</span>
            RouterToEnum<span class="token punctuation">,</span> <span class="token comment">// &#x679A;&#x4E3E; &#x7528;&#x4E8E;Dom &#x4F7F;&#x7528;</span>
            DomArgsEnum<span class="token punctuation">,</span> <span class="token comment">/* toolBar&#x5F62;&#x53C2;&#x679A;&#x4E3E; */</span>
            toolBarShow<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">/* &#x5DE5;&#x5177;&#x680F;&#x5C55;&#x793A;&#x5224;&#x65AD; */</span>
                dealt<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
                making<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
                created<span class="token operator">:</span> <span class="token boolean">false</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            loading<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// loading</span>
            listQuery<span class="token operator">:</span> <span class="token punctuation">{</span> page<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> count<span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> category<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> type<span class="token operator">:</span> <span class="token keyword">null</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x67E5;&#x8BE2;&#x53C2;&#x6570;</span>
            pageType<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token comment">// &#x5F53;&#x524D;&#x9875;&#x9762;&#x7684;&#x5177;&#x4F53;&#x677F;&#x5757;&#x5206;&#x7C7B; =&gt; &#x5F85;&#x6211;&#x5904;&#x7406;&#x3001; &#x505A;&#x6210;&#x4E2D;&#x3001; &#x6211;&#x521B;&#x5EFA;&#x7684;</span>
            tableData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x683C;&#x6570;&#x636E;</span>
            page<span class="token operator">:</span> <span class="token punctuation">{</span> current<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> total<span class="token operator">:</span> <span class="token number">0</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;&#x6570;&#x636E;</span>
            btnEnable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">/* &#x6309;&#x94AE;&#x542F;&#x7528;/&#x7981;&#x7528; */</span>
            isSave<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x63D0;&#x4EA4;&#x4FDD;&#x7BA1;</span>
            isTax<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">//&#x7533;&#x8BF7;&#x514D;&#x7A0E;&#x5904;&#x7406;</span>
            isEdit<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x662F;&#x5426;&#x53EF;&#x7F16;&#x8F91;</span>
            btnFinal<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x6700;&#x7EC8;&#x5B58;&#x6863;</span>
            isBatchSave<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">//&#x662F;&#x5426;&#x6279;&#x91CF;&#x4FDD;&#x7BA1;</span>
            isBatchTax<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">//&#x662F;&#x5426;&#x6279;&#x91CF;&#x53BB;&#x514D;&#x7A0E;</span>
            taxList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x514D;&#x7A0E;&#x5904;&#x7406; &#x7F13;&#x5B58;&#x5217;&#x8868;</span>
            saveList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x4FDD;&#x7BA1;&#x5904;&#x7406; &#x7F13;&#x5B58;&#x5217;&#x8868;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5F53;&#x524D;&#x9009;&#x4E2D;&#x5BF9;&#x8C61;</span>
            footer<span class="token operator">:</span> <span class="token punctuation">{</span> totalCount<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> totalAmount<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> details<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x9875;&#x811A; &#x6570;&#x636E;</span>
            multipleSelection<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x884C;&#x9009;&#x4E2D;&#x6570;&#x636E; &#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>fileI18nHandler<span class="token punctuation">,</span> sortChange<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span>
            <span class="token string">&apos;isAdmin&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;queryParams&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;user&apos;</span>
        <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token function">resOptType</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x53BB;&#x5904;&#x7406; &#x7C7B;&#x578B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
            <span class="token keyword">return</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;./conf&quot;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&apos;resOptType&apos;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;lang.type&apos;</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">isNormal</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x662F;&#x5426;&#x4E3A;&#x666E;&#x901A;&#x7528;&#x6237;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> isAdmin<span class="token punctuation">,</span> roles <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>isAdmin<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span><span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> roles<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>RoleEnum<span class="token punctuation">.</span>businesser<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        renderSize<span class="token punctuation">,</span> <span class="token comment">// &#x6587;&#x4EF6;&#x5927;&#x5C0F; &#x683C;&#x5F0F;&#x5316; &#x6DFB;&#x52A0;&#x5355;&#x4F4D;</span>
        <span class="token function">dispatchClick</span><span class="token punctuation">(</span><span class="token parameter">arg</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">//&#x5206;&#x53D1;toolBar &#x70B9;&#x51FB;&#x4E8B;&#x4EF6;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> del<span class="token punctuation">,</span> batchTax<span class="token punctuation">,</span> batchSave<span class="token punctuation">,</span> print <span class="token punctuation">}</span> <span class="token operator">=</span> DomArgsEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> add<span class="token punctuation">,</span> copy<span class="token punctuation">,</span> edit<span class="token punctuation">,</span> tax<span class="token punctuation">,</span> final<span class="token punctuation">,</span> reqSave <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">switch</span> <span class="token punctuation">(</span>arg<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">case</span> add<span class="token operator">:</span>
                <span class="token keyword">case</span> copy<span class="token operator">:</span>
                <span class="token keyword">case</span> edit<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>addTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> arg <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> tax<span class="token operator">:</span> <span class="token comment">/* &#x8BF7;&#x6C42;&#x514D;&#x7A0E;&#x5904;&#x7406; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>reqTaxTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> arg <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> reqSave<span class="token operator">:</span> <span class="token comment">/* &#x53D1;&#x8D77; &#x63D0;&#x4EA4;&#x4FDD;&#x7BA1; || &#x6700;&#x7EC8;&#x5B58;&#x6863;*/</span>
                <span class="token keyword">case</span> final<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>lendTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> arg <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> del<span class="token operator">:</span> <span class="token comment">/* &#x5220;&#x9664;&#x6587;&#x6863; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">deleteFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> batchTax<span class="token operator">:</span> <span class="token comment">/* &#x6279;&#x91CF;&#x5904;&#x7406; */</span>
                <span class="token keyword">case</span> batchSave<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">batchHandler</span><span class="token punctuation">(</span>arg<span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> print<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">printHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">default</span><span class="token operator">:</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">printHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">// &#x70B9;&#x51FB;&#x6253;&#x5370;&#x6309;&#x94AE;&#xFF0C;&#x83B7;&#x53D6; &#x5F53;&#x524D;&#x9009;&#x4E2D;&#x884C; &#x7684;&#x9644;&#x4EF6;&#x5217;&#x8868;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> viewPos<span class="token punctuation">,</span> uploadPos <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>viewPos<span class="token punctuation">,</span> <span class="token string">&apos;viewPos&apos;</span><span class="token punctuation">)</span>
            <span class="token comment">// viewPos = uploadPos; &#x4E34;&#x65F6;&#x4E3A;&#x4E86;&#x6D4B;&#x8BD5; &#x6240;&#x4EE5;&#x624D;&#x5427; uploadPos &#x8D4B;&#x503C;&#x7ED9; viewPos</span>
            <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>viewPos <span class="token operator">||</span> viewPos<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&apos;&#x5F53;&#x524D;&#x6587;&#x6863;&#x6587;&#x4EF6;&#x6B63;&#x5728;&#x505A;&#x683C;&#x5F0F;&#x8F6C;&#x6362;,&#x8BF7;&#x7A0D;&#x540E;&#x518D;&#x8BD5;...&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&apos;cacheLocalPrintJob&apos;</span><span class="token punctuation">,</span> _id<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>printList<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">choicePrint</span><span class="token punctuation">(</span><span class="token parameter"><span class="token punctuation">[</span>row<span class="token punctuation">,</span> <span class="token punctuation">{</span> fileName<span class="token punctuation">,</span> storagePath <span class="token punctuation">}</span><span class="token punctuation">]</span></span><span class="token punctuation">)</span><span class="token punctuation">{</span> <span class="token comment">// &#x6839;&#x636E;&#x9009;&#x4E2D;&#x9644;&#x4EF6;&#xFF0C; &#x8DF3;&#x8F6C;&#x5230; pdf &#x9884;&#x89C8;&#x9875;&#x9762;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> row<span class="token punctuation">;</span>
                <span class="token comment">// this.loading = true;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> view <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> file<span class="token punctuation">.</span><span class="token function">file_view</span><span class="token punctuation">(</span><span class="token punctuation">{</span> docId<span class="token operator">:</span> _id<span class="token punctuation">,</span> fileName<span class="token punctuation">,</span> storagePath <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>view<span class="token punctuation">,</span><span class="token string">&apos; view&apos;</span><span class="token punctuation">)</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span><span class="token punctuation">(</span>view<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                    <span class="token keyword">const</span> secretKey <span class="token operator">=</span> view<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                    <span class="token keyword">const</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> urlData <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> file<span class="token punctuation">.</span><span class="token function">file_pdf</span><span class="token punctuation">(</span>secretKey<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token comment">// const pdfPublicUri = `/api/file/pdf?key=${secretKey}`;</span>
                    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>urlData<span class="token punctuation">,</span> <span class="token string">&apos;urlddata&apos;</span><span class="token punctuation">)</span>
                    <span class="token keyword">const</span> <span class="token punctuation">{</span> value <span class="token punctuation">}</span> <span class="token operator">=</span> urlData<span class="token punctuation">;</span>
                    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>value<span class="token punctuation">,</span> <span class="token string">&apos;value&apos;</span><span class="token punctuation">)</span>
                    <span class="token comment">// const src = &apos;https://cdn.filestackcontent.com/wcrjf9qPTCKXV3hMXDwK&apos;</span>
                    <span class="token keyword">const</span> job <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&apos;cacheLocalPrintJob&apos;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> fileName<span class="token punctuation">,</span> src<span class="token operator">:</span> value <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">if</span><span class="token punctuation">(</span>job<span class="token punctuation">)</span><span class="token punctuation">{</span>
                        <span class="token keyword">const</span> <span class="token punctuation">{</span> href <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">resolve</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> <span class="token string">&apos;/pdfview&apos;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        window<span class="token punctuation">.</span><span class="token function">open</span><span class="token punctuation">(</span>href<span class="token punctuation">,</span> <span class="token string">&apos;_blank&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">resOptHandler</span><span class="token punctuation">(</span><span class="token parameter">row</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x7528;&#x6237;&#x53BB;&#x505A;&#x5904;&#x7406; &#x529F;&#x80FD;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> archive <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;setParams&quot;</span><span class="token punctuation">,</span> row<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>row<span class="token punctuation">.</span>resOptType <span class="token operator">===</span> archive<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x53BB;&#x5B58;&#x6863;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>lendTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> RouterToEnum<span class="token punctuation">.</span>resSave <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                <span class="token keyword">return</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>resOptTemp <span class="token punctuation">}</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">batchHandler</span><span class="token punctuation">(</span><span class="token parameter">arg</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6279;&#x91CF;&#x53BB;&#x5904;&#x7406;&#xFF0C; &#x4FDD;&#x7BA1;&#xFF0C;&#x514D;&#x7A0E;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> taxes<span class="token punctuation">,</span> archives <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;files.approve.msg.batch&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token comment">//type &#x514D;&#x7A0E;&#x5904;&#x7406;:10, &#x5B58;&#x6863;:11</span>
                    <span class="token keyword">let</span> type <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">,</span> docIds <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>arg <span class="token operator">==</span> DomArgsEnum<span class="token punctuation">.</span>batchTax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        type <span class="token operator">=</span> taxes<span class="token punctuation">;</span>
                        docIds <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>taxList<span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        type <span class="token operator">=</span> archives<span class="token punctuation">;</span>
                        docIds <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>saveList<span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">try</span> <span class="token punctuation">{</span>
                        <span class="token keyword">const</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_batch</span><span class="token punctuation">(</span><span class="token punctuation">{</span> type<span class="token punctuation">,</span> docIds <span class="token punctuation">}</span><span class="token punctuation">)</span>
                        <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                            <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x64CD;&#x4F5C;&#x6210;&#x529F;</span>
                            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token punctuation">}</span>
                    <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">handleSelectionChange</span><span class="token punctuation">(</span><span class="token parameter">val</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x884C;&#x9009;&#x4E2D; &#x89E6;&#x53D1;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection <span class="token operator">=</span> val<span class="token punctuation">;</span>
            <span class="token comment">//&#x5224;&#x65AD;&#x6279;&#x91CF;&#x514D;&#x7A0E;&#x548C;&#x5B58;&#x6863; </span>
            <span class="token comment">//resOptType 4 &#x53BB;&#x514D;&#x7A0E; 5 &#x51FA;&#x5B58;&#x6863;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>path <span class="token operator">==</span> RouterPathEnum<span class="token punctuation">.</span>dealtView<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>taxList <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>saveList <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">let</span> isBatch <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> tax<span class="token punctuation">,</span> archive <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
                <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> val<span class="token punctuation">.</span>length<span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">const</span> item <span class="token operator">=</span> val<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">const</span> batchs <span class="token operator">=</span> <span class="token punctuation">[</span>tax<span class="token punctuation">,</span> archive<span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>batchs<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>item<span class="token punctuation">.</span>resOptType<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        isBatch <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                        <span class="token keyword">break</span>
                    <span class="token punctuation">}</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>item<span class="token punctuation">.</span>resOptType <span class="token operator">==</span> tax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>taxList<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>item<span class="token punctuation">.</span>_id<span class="token punctuation">)</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>saveList<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>item<span class="token punctuation">.</span>_id<span class="token punctuation">)</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">const</span> taxLen <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>taxList<span class="token punctuation">.</span>length<span class="token punctuation">;</span>
                <span class="token keyword">const</span> saveLen <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>saveList<span class="token punctuation">.</span>length<span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>isBatch<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>taxLen <span class="token operator">&gt;</span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> saveLen <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchTax <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchSave <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchTax <span class="token operator">=</span> taxLen <span class="token operator">&gt;</span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> saveLen <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchSave <span class="token operator">=</span> taxLen <span class="token operator">==</span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> saveLen <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchTax <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isBatchSave <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>

            <span class="token keyword">this</span><span class="token punctuation">.</span>btnEnable <span class="token operator">=</span> val<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>val<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> tax<span class="token punctuation">,</span> archive <span class="token punctuation">}</span> <span class="token operator">=</span> ReqOptTypeEnum<span class="token punctuation">;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> making<span class="token punctuation">,</span> auditing<span class="token punctuation">,</span> denied<span class="token punctuation">,</span> reject <span class="token punctuation">}</span> <span class="token operator">=</span> DocStateEnum<span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>reqOptType <span class="token operator">&amp;&amp;</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>reqOptType <span class="token operator">==</span> tax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isTax <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>reqOptType <span class="token operator">&amp;&amp;</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>reqOptType <span class="token operator">==</span> archive<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isSave <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state <span class="token operator">==</span> making <span class="token operator">||</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state <span class="token operator">==</span> reject<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isEdit <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>

                <span class="token keyword">const</span> isFianlStates <span class="token operator">=</span> <span class="token punctuation">[</span>making<span class="token punctuation">,</span> auditing<span class="token punctuation">,</span> denied<span class="token punctuation">,</span> reject<span class="token punctuation">]</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>isFianlStates<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span><span class="token operator">+</span>val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>btnFinal <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;setParams&quot;</span><span class="token punctuation">,</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;clearParams&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isSave <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isTax <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isEdit <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>btnFinal <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">rowClick</span><span class="token punctuation">(</span><span class="token parameter">row<span class="token punctuation">,</span> column<span class="token punctuation">,</span> event</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x884C;&#x70B9;&#x51FB;&#x65F6; &#x89E6;&#x53D1;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>column<span class="token punctuation">.</span>label <span class="token operator">||</span> column<span class="token punctuation">.</span>property <span class="token operator">==</span> <span class="token string">&quot;createTime&quot;</span> <span class="token operator">||</span> column<span class="token punctuation">.</span>type <span class="token operator">==</span> <span class="token string">&quot;selection&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> row<span class="token punctuation">;</span>
            <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>readTemp<span class="token punctuation">.</span><span class="token function">initRecords</span><span class="token punctuation">(</span>row<span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>readTemp<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">deleteFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5220;&#x9664;&#x6587;&#x4EF6;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.confirm&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_delete</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.del&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x5217;&#x8868;&#x6570;&#x636E;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token keyword">let</span> query <span class="token operator">=</span> <span class="token function">fmtSearchTime</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> data<span class="token operator">:</span> page <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> count <span class="token punctuation">}</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">await</span> Promise<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span>user<span class="token punctuation">.</span><span class="token function">user_docs_pages</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>pageType<span class="token punctuation">,</span> query<span class="token punctuation">)</span><span class="token punctuation">,</span> user<span class="token punctuation">.</span><span class="token function">user_docs_count</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>pageType<span class="token punctuation">,</span> query<span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>page<span class="token punctuation">.</span>total <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">.</span>totalCount<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>footer <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>tableData <span class="token operator">=</span> page<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">initToolBar</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x5DE5;&#x5177;&#x680F;</span>
            <span class="token comment">//&#x5224;&#x65AD;&#x529F;&#x80FD; &#x6309;&#x94AE;&#x662F;&#x5426;&#x5C55;&#x793A;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> dealtView<span class="token punctuation">,</span> makingView<span class="token punctuation">,</span> createdView <span class="token punctuation">}</span> <span class="token operator">=</span> RouterPathEnum<span class="token punctuation">;</span>
            <span class="token keyword">switch</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>path<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">case</span> dealtView<span class="token operator">:</span> <span class="token comment">/* &#x5F85;&#x6211;&#x5904;&#x7406; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>toolBarShow<span class="token punctuation">.</span>dealt <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>pageType <span class="token operator">=</span> MyDocOpt<span class="token punctuation">.</span>dealt<span class="token punctuation">;</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> makingView<span class="token operator">:</span> <span class="token comment">/* &#x6211;&#x505A;&#x6210;&#x4E2D; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>toolBarShow<span class="token punctuation">.</span>making <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>pageType <span class="token operator">=</span> MyDocOpt<span class="token punctuation">.</span>making<span class="token punctuation">;</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> createdView<span class="token operator">:</span> <span class="token comment">/* &#x6211;&#x521B;&#x5EFA;&#x7684; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>toolBarShow<span class="token punctuation">.</span>created <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>pageType <span class="token operator">=</span> MyDocOpt<span class="token punctuation">.</span>created<span class="token punctuation">;</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D; &#x89E6;&#x53D1;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initToolBar</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;clearParams&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="printlistindexvue">printList/index.vue</h5>
<blockquote>
<p>&#x6253;&#x5370;&#x9644;&#x4EF6;&#x5217;&#x8868;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            isShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    props<span class="token operator">:</span> <span class="token punctuation">{</span>
        form<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">choice</span><span class="token punctuation">(</span><span class="token parameter">item</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;choice&quot;</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> item<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<p><img src="../../images/myfiles_approve.jpg" alt=""></p>
<h5 id="approveindexvue">approve/index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    ReqOptType <span class="token keyword">as</span> ReqOptTypeEnum<span class="token punctuation">,</span>
    ResOptType <span class="token keyword">as</span> ResOptTypeEnum<span class="token punctuation">,</span>
    DocumentState <span class="token keyword">as</span> DocStateEnum
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileI18nHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RouterToEnum<span class="token punctuation">,</span> LocalStorageEnum <span class="token keyword">as</span> LSEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> _ <span class="token keyword">from</span> <span class="token string">&apos;lodash&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/filters&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    filters<span class="token operator">:</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;&#x6CE8;&#x518C;</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            DocStateEnum<span class="token punctuation">,</span> <span class="token comment">// &#x679A;&#x4E3E;&#x58F0;&#x660E; &#x7528;&#x4E8E;&#x5728;Dom&#x4E0A;&#x4F7F;&#x7528;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x5355;&#x6570;&#x636E;</span>
            approveUser<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token comment">// &#x5BA1;&#x67E5;&#x7684;&#x7528;&#x6237;&#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>fileI18nHandler<span class="token punctuation">]</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span>
            <span class="token string">&apos;queryParams&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;user&apos;</span>
        <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5C0F;&#x6807;&#x9898;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> RouterToEnum<span class="token punctuation">.</span>tax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.taxTitle&apos;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> resBtnOptType <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;./../conf&quot;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&apos;resBtnOptType&apos;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;lang.type&apos;</span><span class="token punctuation">)</span><span class="token punctuation">]</span>
            <span class="token keyword">return</span> resBtnOptType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>resOptType <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8FD4;&#x56DE;&#x4E0A;&#x4E00;&#x5C42;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">downLoad</span><span class="token punctuation">(</span><span class="token parameter">file</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x9644;&#x4EF6;&#x4E0B;&#x8F7D;</span>
            window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href <span class="token operator">=</span> <span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">/api/doc/download?storagePath=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>file<span class="token punctuation">.</span>storagePath<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">&amp;name=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>file<span class="token punctuation">.</span>fileName<span class="token interpolation-punctuation punctuation">}</span></span><span class="token template-punctuation string">`</span></span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">submit</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8868;&#x5355;&#x63D0;&#x4EA4;</span>
            <span class="token comment">//&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x514D;&#x7A0E;&#x5904;&#x7406;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> RouterToEnum<span class="token punctuation">.</span>tax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">subTax</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> resOptType <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_approve</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> resOptType<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x64CD;&#x4F5C;&#x6210;&#x529F;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subReject</span><span class="token punctuation">(</span><span class="token parameter">type</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x6587;&#x4E66;&#x5426;&#x51B3; &#x6216; &#x4FDD;&#x7559;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.confirm&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x786E;&#x8BA4;&#x64CD;&#x4F5C;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_approve</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> ResOptTypeEnum<span class="token punctuation">[</span>type<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x64CD;&#x4F5C;&#x6210;&#x529F;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x9875;&#x9762;&#x521D;&#x59CB;&#x5316; &#x6570;&#x636E;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initRecords</span><span class="token punctuation">(</span><span class="token parameter">type</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x67E5;&#x8BE2; &#x5BA1;&#x6838;&#x8BB0;&#x5F55; &#x6216; &#x51FA;&#x501F;&#x8BB0;&#x5F55;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_records</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> type<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>approveUser <span class="token operator">=</span> data<span class="token punctuation">.</span>data
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subTax</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x53D1;&#x8D77;&#x514D;&#x7A0E;&#x5904;&#x7406;</span>
            <span class="token keyword">let</span> list<span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> category <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_process</span><span class="token punctuation">(</span><span class="token punctuation">{</span> reqOptType<span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>tax<span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> category <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> taxLines <span class="token punctuation">}</span> <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>taxLines<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.warning&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x5F53;&#x524D;&#x6682;&#x672A;&#x8BBE;&#x7F6E;&#x514D;&#x7A0E;&#x5904;&#x7406;&#x62C5;&#x5F53;</span>
                        <span class="token keyword">return</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                    list <span class="token operator">=</span> taxLines<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token punctuation">{</span> errorCode<span class="token punctuation">,</span> errorMsg <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> taxList <span class="token operator">=</span> list<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> cache <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>item<span class="token punctuation">.</span>agentUid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    cache <span class="token operator">=</span> <span class="token punctuation">{</span> resUid<span class="token operator">:</span> item<span class="token punctuation">.</span>agentUid<span class="token punctuation">,</span> resName<span class="token operator">:</span> item<span class="token punctuation">.</span>agentName <span class="token punctuation">}</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    cache <span class="token operator">=</span> <span class="token punctuation">{</span> resUid<span class="token operator">:</span> item<span class="token punctuation">.</span>uid<span class="token punctuation">,</span> resName<span class="token operator">:</span> item<span class="token punctuation">.</span>name <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">return</span> <span class="token punctuation">{</span> <span class="token operator">...</span>cache<span class="token punctuation">,</span> resDeptId<span class="token operator">:</span> item<span class="token punctuation">.</span>deptId<span class="token punctuation">,</span> resOptType<span class="token operator">:</span> item<span class="token punctuation">.</span>resOptType <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span>
            <span class="token keyword">let</span> paths <span class="token operator">=</span> taxList<span class="token punctuation">;</span>
            <span class="token keyword">let</span> form <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">)</span><span class="token punctuation">;</span>
            form <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">omit</span><span class="token punctuation">(</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;_id&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;__v&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;createTime&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;uid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>

            <span class="token keyword">const</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> name<span class="token punctuation">,</span> deptId <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">;</span>
            <span class="token keyword">let</span> data <span class="token operator">=</span> <span class="token punctuation">{</span>
                reqUid<span class="token operator">:</span> _id<span class="token punctuation">,</span>
                reqName<span class="token operator">:</span> name<span class="token punctuation">,</span>
                reqDeptId<span class="token operator">:</span> deptId<span class="token punctuation">,</span>
                reqDeptName<span class="token operator">:</span> localStorage<span class="token punctuation">.</span><span class="token function">getItem</span><span class="token punctuation">(</span>LSEnum<span class="token punctuation">.</span>deptName<span class="token punctuation">)</span><span class="token punctuation">,</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> formData <span class="token operator">=</span> <span class="token punctuation">{</span>
                docId<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                docName<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>name<span class="token punctuation">,</span>
                <span class="token operator">...</span>form<span class="token punctuation">,</span>
                reqOptType<span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>tax<span class="token punctuation">,</span>
                paths<span class="token punctuation">,</span>
                <span class="token operator">...</span>data
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_ignite</span><span class="token punctuation">(</span>formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.approve.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x64CD;&#x4F5C;&#x6210;&#x529F;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token comment">//&#x5224;&#x65AD;&#x662F;&#x5426;&#x5237;&#x65B0;&#x9875;&#x9762;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initRecords</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x67E5;&#x8BE2;&#x5BA1;&#x6838;&#x8BB0;&#x5F55;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="confjs">conf.js</h5>
<blockquote>
<p>&#x6211;&#x7684;&#x6587;&#x6863;&#x4E0B; &#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript">
<span class="token comment">/**
 * &#x54CD;&#x5E94;&#x64CD;&#x4F5C;&#x7C7B;&#x578B;
 * enum for ResOptType
 * @readonly
 * @enum {Number}
 */</span>

<span class="token keyword">export</span> <span class="token keyword">const</span> resOptTypeZh <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token string">&apos;&#x5BA1;&#x67E5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x76D6;&#x7AE0;&#x524D;&#x5BA1;&#x67E5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x76D6;&#x7AE0;&#x5904;&#x7406;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x514D;&#x7A0E;&#x5904;&#x7406;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x4FDD;&#x7BA1;&#x5904;&#x7406;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x51FA;&#x501F;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x5F52;&#x8FD8;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x4FDD;&#x7559;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x5426;&#x51B3;&apos;</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> resOptTypeJa <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token operator">...</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> resOptTypeEn <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token operator">...</span>
<span class="token punctuation">]</span>

<span class="token comment">/**
 * &#x64CD;&#x4F5C;&#x9875;&#x9762; button &#x6587;&#x6848;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> resBtnOptTypeZh <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token string">&apos;&#x5BA1;&#x67E5;&#x5B8C;&#x6BD5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x505A;&#x76D6;&#x7AE0;&#x524D;&#x5BA1;&#x67E5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x76D6;&#x7AE0;&#x5B8C;&#x6BD5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x514D;&#x7A0E;&#x5904;&#x7406;&#x5B8C;&#x6BD5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x5B58;&#x6863;&#x5B8C;&#x6BD5;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x51FA;&#x501F;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x5F52;&#x8FD8;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x4FDD;&#x7559;&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x5426;&#x51B3;&apos;</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> resBtnOptTypeJa <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token operator">...</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> resBtnOptTypeEn <span class="token operator">=</span> <span class="token punctuation">[</span>
  <span class="token operator">...</span>
<span class="token punctuation">]</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="login.html" class="navigation navigation-prev " aria-label="Previous page: login">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="passmail.html" class="navigation navigation-next " aria-label="Next page: passmail">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"myfiles","level":"2.10.10","depth":2,"next":{"title":"passmail","level":"2.10.11","depth":2,"path":"src/views/passmail.md","ref":"src/views/passmail.md","articles":[]},"previous":{"title":"login","level":"2.10.9","depth":2,"path":"src/views/login.md","ref":"src/views/login.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"合同管理","language":"zh-hans","gitbook":"3.2.3","description":"合同管理Web端"},"file":{"path":"src/views/myfiles.md","mtime":"2020-03-03T04:35:05.467Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-07T04:19:36.591Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

